<template>
  <div class="panorama-container">
    <web-view :src="url"></web-view>
  </div>
</template>

<script setup>
import { onLoad } from '@dcloudio/uni-app'
import config from '@/config/api'
const vrUrl = config.vrUrl
const id = ref('')
// 计算属性返回url
const url = computed(() => {
  return vrUrl + '?id=' + id.value
})
onLoad((options) => {
 id.value = options.id
})
</script>
<style>
page {
  height: 100%;
  overflow: hidden;
}
</style>
